package com.hibernate.modle.impl;

import com.google.gson.Gson;
import com.hibernate.modle.tp.AbstractInfDate;
import com.hibernate.modle.tpl.ModleDataInfo;


public class TbUserModle extends ModleDataInfo implements AbstractInfDate<Long>{
	private long tb_id;
	private String tb_data;
	public long getTb_id() {
		return tb_id;
	}
	public void setTb_id(long tb_id) {
		this.tb_id = tb_id;
	}
	@Override
	public void initData(Long k) {
		this.tb_id = k;
		TbUserInfo tbUserInfo = new TbUserInfo();
		Gson gson = new Gson();
		setTb_data(gson.toJson(tbUserInfo));	
	}
	public String getTb_data() {
		return tb_data;
	}
	public void setTb_data(String tb_data) {
		this.tb_data = tb_data;
	}
	public void loadOver() {
	}
	
	public TbUserInfo getUserInfo() {
		Gson gson = new Gson();
		TbUserInfo tbUserInfo = gson.fromJson(tb_data, TbUserInfo.class);
		return tbUserInfo;
	}
}
